Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

183
Visualizações
What do I do about not having access to "target" in Stage 3 javascript decorators?

Decorators are now stage 3. https://github.com/tc39/proposal-decorators

I use "target" in the legacy implementation to do lots of things. I've spent a lot of the weekend reading about this current proposal, and it seems pretty dead set on not allowing access to anything aside from the thing being decorated. That means "target" (such as the class) isn't available ever to anything other than class decorators. Even functions passed to addInitializer don't receive the class as an argument.

Am I getting this right? For example, there's no way to decorate a field that could log something like "Class Foo has field Bar" at the start of the program.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda